package org.baojie.server.refactor;

/**
 * @author baojie
 * @desc 可能需要解析的语句
 * @date 2022/6/15 下午6:43
 */
public enum CareSentence {

    CREATE("create", "create建表语句", 0),
    UPDATE("update", "update更新语句", 1),
    ALTER("alter", "alter修改语句", 2),
    DROP("drop", "drop删除语句", 3),
    COMMENT("comment", "comment备注字段语句", 4),
    SELECT("select", "select查询语句", 5),
    TRUNCATE("truncate", "truncate删除语句", 6),
    DELETE("delete", "delete删除语句", 7);

    final String name;
    final String desc;
    final int code;

    CareSentence(String name, String desc, int code) {
        this.name = name;
        this.desc = desc;
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public String getDesc() {
        return desc;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String toString() {
        return "CareSentence{" +
                "name='" + name + '\'' +
                ", desc='" + desc + '\'' +
                ", code=" + code +
                '}';
    }

}
